﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using MyspaceToolkit.OAuth;
using MyspaceToolkit;
using System.Text;

public partial class TestObjects : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        MyspaceClient mc = new MyspaceClient("api.msappspace.com", "http://www.myspace.com/346375750", "e42baa50e9694afcb95ab188ad2505e6", "v1");
        GetUserProfileRequest getUserRequest = new GetUserProfileRequest();
        GetUserProfileResponse getUserResponse = new GetUserProfileResponse();
        getUserRequest.ResponseFormat = HttpPostUtility.ResponseType.XML;
        getUserRequest.UserID = "30344243";

        getUserResponse = mc.GetUserProfile(getUserRequest);
        ResponseValues.Text = getUserResponse.ResponseXMLorJSON;
    }
}
